﻿using AutoMapper;
using Common.Damin;
using RabitPart.WritedPartApi.Application.Comman.CultivationFile;
using RabitPart.WritedPartApi.Application.Comman.RBACfile;
using RabitPart.WritedPartApi.Application.Comman.RBACfiless;
using RabitPart.WritedPartApi.Application.Comman.TraceabilityFile;

namespace RabitPart.WritedPartApi
{
    public class MappingAUTO : Profile
    {
        public  MappingAUTO()
        {

            CreateMap<RBACRel_User_RoleCreateComman, Rel_user_role>();//添加rbac角色关系

            CreateMap<TraceabilityCreateComman, Companymanage>();//添加溯源管理
            CreateMap<TraceabilityDelecteComman, Companymanage>();//更新溯源管理
            CreateMap<TraceabilityUpdateComman, Companymanage>();//删除溯源管理
             
            CreateMap<RBACUserCreateComman, User>(); //添加rbac user用户
            CreateMap<RBACUserUpdateComman, User>(); //更新rbac user用户
            CreateMap<RBACUserDelecteComman, User>(); //删除rbac user用户

            CreateMap<RBACRoleCreateComman, Role>(); //添加rbac role用户  
            CreateMap<RBACRoleUpdateComman, Role>(); //修改rbac role用户  

            CreateMap<RBACPermCreateComman, Perms>(); //添加rbac perm用户  
            CreateMap<RBACPermUpdateComman, Perms>(); //修改rbac perm用户  
            CreateMap<RBACPermDelecteComman, Perms>(); //删除rbac perm用户  

            CreateMap<RBACuserroleCreateComman, Rel_user_role>(); //添加rbac userrole用户  

            CreateMap<RBACrolepermCreateComman, Rel_role_perm>(); //添加rbac roleperm用户  

            CreateMap<CultivationComman, Cultivation>(); //添加 养殖 用户  
            CreateMap<CultivationcorporateComman, Cultivation>(); //添加 养殖 用户  
        }
    }
}
